import { createApp } from 'vue'
import App from './App.vue'
import { setupRouter } from "@/routes"
import { setupStore } from "@/store"

import naive from 'naive-ui'


// 全局
import '@/styles/index.scss'

function setupApp() {
  const app = createApp(App)

  // router
  setupRouter(app)

  // pinia
  setupStore(app)

  // naive-ui
  app.use(naive)

  app.mount('#app')
}

setupApp()
